﻿<%@ Page Title="Users" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="TPS.Users" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:EntityDataSource ID="UsersDataSource" runat="server"
        OnContextCreating="UsersDataSource_ContextCreating" EntitySetName="Users"
        EnableInsert="true" EnableUpdate="true" EnableDelete="true" EnableFlattening="false"
        OnDeleting="UsersDataSource_Deleting" />

    <p>
        Show: 
        <asp:DropDownList ID="RoleFilterDropDownList" runat="server" AutoPostBack="true"
            OnSelectedIndexChanged="RoleFilterDropDownList_SelectedIndexChanged">
            <asp:ListItem Value="All" />
            <asp:ListItem Value="Managers" />
            <asp:ListItem Value="Clients" />
            <asp:ListItem Value="Staff" />
        </asp:DropDownList>
    </p>

    <asp:ValidationSummary ID="EditUserValidationSummary" runat="server"
        ValidationGroup="EditUserValidationGroup" ShowSummary="false" ShowMessageBox="true" />

    <asp:GridView ID="UsersGridView" runat="server" DataSourceID="UsersDataSource" DataKeyNames="UserID"
        AllowSorting="true" AutoGenerateColumns="false">
        <Columns>
            <asp:TemplateField HeaderText="Role" SortExpression="SecurityRole">
                <ItemTemplate>
                    <%# Eval("SecurityRole") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:DropDownList ID="EditUserRoleDropDownList" runat="server" SelectedValue='<%# Bind("SecurityRole") %>'>
                        <asp:ListItem Value="Manager" />
                        <asp:ListItem Value="Client" />
                        <asp:ListItem Value="Staff" />
                    </asp:DropDownList>
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Organization" SortExpression="Organization">
                <ItemTemplate>
                    <%# Eval("Organization") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="EditUserOrganizationTextBox" runat="server" Text='<%# Bind("Organization") %>' />
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Name" SortExpression="LastName">
                <ItemTemplate>
                    <%# Eval("LastName") %>, <%# Eval("FirstName") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="EditUserLastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' />
                    <asp:RequiredFieldValidator ID="EditUserLastNameRequiredValidator" runat="server"
                        ControlToValidate="EditUserLastNameTextBox" Text="*" ErrorMessage="A first name is required."
                        ValidationGroup="EditUserValidationGroup" />, 

                    <asp:TextBox ID="EditUserFirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' />
                    <asp:RequiredFieldValidator ID="EditUserFirstNameRequiredValidator" runat="server"
                        ControlToValidate="EditUserFirstNameTextBox" Text="*" ErrorMessage="A first name is required."
                        ValidationGroup="EditUserValidationGroup" />
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Email Address" SortExpression="Email">
                <ItemTemplate>
                    <%# Eval("Email") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="EditUserEmailTextBox" runat="server" Text='<%# Bind("Email") %>' />
                    <asp:RequiredFieldValidator ID="EditUserEmailRequiredValidator" runat="server"
                        ControlToValidate="EditUserEmailTextBox" Text="*" ErrorMessage="An email address is required."
                        ValidationGroup="EditUserValidationGroup" />
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Phone Number" SortExpression="Phone">
                <ItemTemplate>
                    <%# Eval("Phone") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="EditUserPhoneTextBox" runat="server" Text='<%# Bind("Phone") %>' />
                    <asp:RequiredFieldValidator ID="EditUserPhoneRequiredValidator" runat="server"
                        ControlToValidate="EditUserPhoneTextBox" Text="*" ErrorMessage="A phone number is required."
                        ValidationGroup="EditUserValidationGroup" />
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Mailing Address" SortExpression="ZipCode,State,City,AddressLine2,AddressLine1">
                <ItemTemplate>
                    <%# Eval("AddressLine1") %><br />
                    <%# (Eval("AddressLine2") == null || String.IsNullOrWhiteSpace(Eval("AddressLine2").ToString())) ?
                        String.Empty : Eval("AddressLine2") + "<br />" %>
                    <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="EditUserAddressLine1TextBox" runat="server" Text='<%# Bind("AddressLine1") %>' />
                    <asp:RequiredFieldValidator ID="EditUserAddressLine1RequiredValidator" runat="server"
                        ControlToValidate="EditUserAddressLine1TextBox" Text="*" ErrorMessage="An address is required."
                        ValidationGroup="EditUserValidationGroup" /><br />

                    <asp:TextBox ID="UserEditAddressLine2TextBox" runat="server" Text='<%# Bind("AddressLine2") %>' />

                    <asp:TextBox ID="EditUserCityTextBox" runat="server" Text='<%# Bind("City") %>' />
                    <asp:RequiredFieldValidator ID="EditUserCityRequiredValidator" runat="server"
                        ControlToValidate="EditUserCityTextBox" Text="*" ErrorMessage="A city is required."
                        ValidationGroup="EditUserValidationGroup" /><br />,
                     
                        <asp:DropDownList ID="DropDownListState" runat="server" Text='<%# Bind("State") %>' >
	                        <asp:ListItem Value="AL">AL-Alabama</asp:ListItem>
	                        <asp:ListItem Value="AK">AK-Alaska</asp:ListItem>
	                        <asp:ListItem Value="AZ">AZ-Arizona</asp:ListItem>
	                        <asp:ListItem Value="AR">AR-Arkansas</asp:ListItem>
                            <asp:ListItem Value="AA">AA-Armed Forces Americas</asp:ListItem>
	                        <asp:ListItem Value="AE">AE-Armed Forces Europe</asp:ListItem>
	                        <asp:ListItem Value="AP">AP-Armed Forces Pacific</asp:ListItem>
	                        <asp:ListItem Value="CA">CA-California</asp:ListItem>
	                        <asp:ListItem Value="CO">CO-Colorado</asp:ListItem>
	                        <asp:ListItem Value="CT">CT-Connecticut</asp:ListItem>
	                        <asp:ListItem Value="DC">DC-District of Columbia</asp:ListItem>
	                        <asp:ListItem Value="DE">DE-Delaware</asp:ListItem>
	                        <asp:ListItem Value="FL">FL-Florida</asp:ListItem>
	                        <asp:ListItem Value="GA">GA-Georgia</asp:ListItem>
	                        <asp:ListItem Value="HI">HI-Hawaii</asp:ListItem>
	                        <asp:ListItem Value="ID">ID-Idaho</asp:ListItem>
	                        <asp:ListItem Value="IL">IL-Illinois</asp:ListItem>
	                        <asp:ListItem Value="IN">IN-Indiana</asp:ListItem>
	                        <asp:ListItem Value="IA">IA-Iowa</asp:ListItem>
	                        <asp:ListItem Value="KS">KS-Kansas</asp:ListItem>
	                        <asp:ListItem Value="KY">KY-Kentucky</asp:ListItem>
	                        <asp:ListItem Value="LA">LA-Louisiana</asp:ListItem>
	                        <asp:ListItem Value="ME">ME-Maine</asp:ListItem>
	                        <asp:ListItem Value="MD">MD-Maryland</asp:ListItem>
	                        <asp:ListItem Value="MA">MA-Massachusetts</asp:ListItem>
	                        <asp:ListItem Value="MI">MI-Michigan</asp:ListItem>
	                        <asp:ListItem Value="MN">MN-Minnesota</asp:ListItem>
	                        <asp:ListItem Value="MS">MS-Mississippi</asp:ListItem>
	                        <asp:ListItem Value="MO">MO-Missouri</asp:ListItem>
	                        <asp:ListItem Value="MT">MT-Montana</asp:ListItem>
	                        <asp:ListItem Value="NE">NE-Nebraska</asp:ListItem>
	                        <asp:ListItem Value="NV">NV-Nevada</asp:ListItem>
	                        <asp:ListItem Value="NH">NH-New Hampshire</asp:ListItem>
	                        <asp:ListItem Value="NJ">NJ-New Jersey</asp:ListItem>
	                        <asp:ListItem Value="NM">NM-New Mexico</asp:ListItem>
	                        <asp:ListItem Value="NY">NY-New York</asp:ListItem>
	                        <asp:ListItem Value="NC">NC-North Carolina</asp:ListItem>
	                        <asp:ListItem Value="ND">ND-North Dakota</asp:ListItem>
	                        <asp:ListItem Value="OH">OH-Ohio</asp:ListItem>
	                        <asp:ListItem Value="OK">OK-Oklahoma</asp:ListItem>
	                        <asp:ListItem Value="OR">OR-Oregon</asp:ListItem>
	                        <asp:ListItem Value="PA">PA-Pennsylvania</asp:ListItem>
	                        <asp:ListItem Value="RI">RI-Rhode Island</asp:ListItem>
	                        <asp:ListItem Value="SC">SC-South Carolina</asp:ListItem>
	                        <asp:ListItem Value="SD">SD-South Dakota</asp:ListItem>
	                        <asp:ListItem Value="TN">TN-Tennessee</asp:ListItem>
	                        <asp:ListItem Value="TX">TX-Texas</asp:ListItem>
	                        <asp:ListItem Value="UT">UT-Utah</asp:ListItem>
	                        <asp:ListItem Value="VT">VT-Vermont</asp:ListItem>
	                        <asp:ListItem Value="VA">VA-Virginia</asp:ListItem>
	                        <asp:ListItem Value="WA">WA-Washington</asp:ListItem>
	                        <asp:ListItem Value="WV">WV-West Virginia</asp:ListItem>
	                        <asp:ListItem Value="WI">WI-Wisconsin</asp:ListItem>
	                        <asp:ListItem Value="WY">WY-Wyoming</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="EditUserStateRequiredValidator" runat="server"
                        ControlToValidate="DropDownListState" Text="*" ErrorMessage="A state is required."
                        ValidationGroup="EditUserValidationGroup" /><br />

                    <asp:TextBox ID="EditUserZipCodeTextBox" runat="server" Text='<%# Bind("ZipCode") %>' />
                    <asp:RegularExpressionValidator ID="ZipValidator" runat="server" 
                        ControlToValidate="EditUserZipCodeTextBox" ErrorMessage="Invalid Zip Code" 
                        ValidationExpression="[0-9]{5}" ValidationGroup="EditUserValidationGroup" />
                    <asp:RequiredFieldValidator ID="EditUserZipCodeRequiredValidator" runat="server"
                        ControlToValidate="EditUserZipCodeTextBox" Text="*" ErrorMessage="A zip code is required."
                        ValidationGroup="EditUserValidationGroup" /><br />
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:CommandField HeaderText="Actions" ShowEditButton="true" ShowDeleteButton="true"
                ValidationGroup="EditUserValidationGroup" />
        </Columns>
    </asp:GridView>

    <h2>Add New User</h2>

    <asp:ValidationSummary ID="NewUserValidationSummary" runat="server"
        ValidationGroup="NewUserValidationGroup" ShowSummary="false" ShowMessageBox="true" />

    <asp:DetailsView ID="NewUserDetailsView" runat="server" DataSourceID="UsersDataSource"
        DefaultMode="Insert" AutoGenerateRows="false"
        OnItemInserting="NewUserDetailsView_ItemInserting" OnItemInserted="NewUserDetailsView_ItemInserted">
        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        <EmptyDataRowStyle HorizontalAlign="Left" VerticalAlign="Middle" />
        <Fields>
            <asp:TemplateField HeaderText="Organization">
                <ItemTemplate>
                    <%# Eval("Organization") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="EditUserOrganizationTextBox" runat="server" Text='<%# Bind("Organization") %>' />
                </EditItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="First Name">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserFirstNameTextBox" runat="server" Text='<%# Bind("FirstName") %>' />
                    <asp:RequiredFieldValidator ID="NewUserFirstNameRequiredValidator" runat="server"
                        ControlToValidate="NewUserFirstNameTextBox" Text="*" ErrorMessage="A first name is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Last Name">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserLastNameTextBox" runat="server" Text='<%# Bind("LastName") %>' />
                    <asp:RequiredFieldValidator ID="NewUserLastNameRequiredValidator" runat="server"
                        ControlToValidate="NewUserLastNameTextBox" Text="*" ErrorMessage="A last name is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Email Address">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserEmailTextBox" runat="server" Text='<%# Bind("Email") %>' />
                    <asp:RequiredFieldValidator ID="NewUserEmailRequiredValidator" runat="server"
                        ControlToValidate="NewUserEmailTextBox" Text="*" ErrorMessage="An email address is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Phone Number">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserPhoneTextBox" runat="server" Text='<%# Bind("Phone") %>' />
                    <asp:RequiredFieldValidator ID="NewUserPhoneRequiredValidator" runat="server"
                        ControlToValidate="NewUserPhoneTextBox" Text="*" ErrorMessage="A phone number is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Address Line 1">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserAddressLine1TextBox" runat="server" Text='<%# Bind("AddressLine1") %>' />
                    <asp:RequiredFieldValidator ID="NewUserAddressLine1RequiredValidator" runat="server"
                        ControlToValidate="NewUserAddressLine1TextBox" Text="*" ErrorMessage="An address is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="AddressLine2" HeaderText="Address Line 2" />
            <asp:TemplateField HeaderText="City">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserCityTextBox" runat="server" Text='<%# Bind("City") %>' />
                    <asp:RequiredFieldValidator ID="NewUserCityRequiredValidator" runat="server"
                        ControlToValidate="NewUserCityTextBox" Text="*" ErrorMessage="A city is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="State">
                <InsertItemTemplate>
                        <asp:DropDownList ID="DropDownListState" runat="server" Text='<%# Bind("State") %>' >
	                        <asp:ListItem Value="AL">AL-Alabama</asp:ListItem>
	                        <asp:ListItem Value="AK">AK-Alaska</asp:ListItem>
	                        <asp:ListItem Value="AZ">AZ-Arizona</asp:ListItem>
	                        <asp:ListItem Value="AR">AR-Arkansas</asp:ListItem>
                            <asp:ListItem Value="AA">AA-Armed Forces Americas</asp:ListItem>
	                        <asp:ListItem Value="AE">AE-Armed Forces Europe</asp:ListItem>
	                        <asp:ListItem Value="AP">AP-Armed Forces Pacific</asp:ListItem>
	                        <asp:ListItem Value="CA">CA-California</asp:ListItem>
	                        <asp:ListItem Value="CO">CO-Colorado</asp:ListItem>
	                        <asp:ListItem Value="CT">CT-Connecticut</asp:ListItem>
	                        <asp:ListItem Value="DC">DC-District of Columbia</asp:ListItem>
	                        <asp:ListItem Value="DE">DE-Delaware</asp:ListItem>
	                        <asp:ListItem Value="FL">FL-Florida</asp:ListItem>
	                        <asp:ListItem Value="GA">GA-Georgia</asp:ListItem>
	                        <asp:ListItem Value="HI">HI-Hawaii</asp:ListItem>
	                        <asp:ListItem Value="ID">ID-Idaho</asp:ListItem>
	                        <asp:ListItem Value="IL">IL-Illinois</asp:ListItem>
	                        <asp:ListItem Value="IN">IN-Indiana</asp:ListItem>
	                        <asp:ListItem Value="IA">IA-Iowa</asp:ListItem>
	                        <asp:ListItem Value="KS">KS-Kansas</asp:ListItem>
	                        <asp:ListItem Value="KY">KY-Kentucky</asp:ListItem>
	                        <asp:ListItem Value="LA">LA-Louisiana</asp:ListItem>
	                        <asp:ListItem Value="ME">ME-Maine</asp:ListItem>
	                        <asp:ListItem Value="MD">MD-Maryland</asp:ListItem>
	                        <asp:ListItem Value="MA">MA-Massachusetts</asp:ListItem>
	                        <asp:ListItem Value="MI">MI-Michigan</asp:ListItem>
	                        <asp:ListItem Value="MN">MN-Minnesota</asp:ListItem>
	                        <asp:ListItem Value="MS">MS-Mississippi</asp:ListItem>
	                        <asp:ListItem Value="MO">MO-Missouri</asp:ListItem>
	                        <asp:ListItem Value="MT">MT-Montana</asp:ListItem>
	                        <asp:ListItem Value="NE">NE-Nebraska</asp:ListItem>
	                        <asp:ListItem Value="NV">NV-Nevada</asp:ListItem>
	                        <asp:ListItem Value="NH">NH-New Hampshire</asp:ListItem>
	                        <asp:ListItem Value="NJ">NJ-New Jersey</asp:ListItem>
	                        <asp:ListItem Value="NM">NM-New Mexico</asp:ListItem>
	                        <asp:ListItem Value="NY">NY-New York</asp:ListItem>
	                        <asp:ListItem Value="NC">NC-North Carolina</asp:ListItem>
	                        <asp:ListItem Value="ND">ND-North Dakota</asp:ListItem>
	                        <asp:ListItem Value="OH">OH-Ohio</asp:ListItem>
	                        <asp:ListItem Value="OK">OK-Oklahoma</asp:ListItem>
	                        <asp:ListItem Value="OR">OR-Oregon</asp:ListItem>
	                        <asp:ListItem Value="PA">PA-Pennsylvania</asp:ListItem>
	                        <asp:ListItem Value="RI">RI-Rhode Island</asp:ListItem>
	                        <asp:ListItem Value="SC">SC-South Carolina</asp:ListItem>
	                        <asp:ListItem Value="SD">SD-South Dakota</asp:ListItem>
	                        <asp:ListItem Value="TN">TN-Tennessee</asp:ListItem>
	                        <asp:ListItem Value="TX">TX-Texas</asp:ListItem>
	                        <asp:ListItem Value="UT">UT-Utah</asp:ListItem>
	                        <asp:ListItem Value="VT">VT-Vermont</asp:ListItem>
	                        <asp:ListItem Value="VA">VA-Virginia</asp:ListItem>
	                        <asp:ListItem Value="WA">WA-Washington</asp:ListItem>
	                        <asp:ListItem Value="WV">WV-West Virginia</asp:ListItem>
	                        <asp:ListItem Value="WI">WI-Wisconsin</asp:ListItem>
	                        <asp:ListItem Value="WY">WY-Wyoming</asp:ListItem>
                            </asp:DropDownList>                    
                    <asp:RequiredFieldValidator ID="NewUserStateRequiredValidator" runat="server"
                        ControlToValidate="DropDownListState" Text="*" ErrorMessage="A state is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Zip Code">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserZipCodeTextBox" runat="server" Text='<%# Bind("ZipCode") %>' />
                        <asp:RegularExpressionValidator ID="ZipValidator" runat="server" 
                            ControlToValidate="NewUserZipCodeTextBox" ErrorMessage="Invalid Zip Code" 
                            ValidationExpression="[0-9]{5}" ValidationGroup="NewUserValidationGroup" />
                    <asp:RequiredFieldValidator ID="NewUserZipCodeRequiredValidator" runat="server"
                        ControlToValidate="NewUserZipCodeTextBox" Text="*" ErrorMessage="A zip code is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Password">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserPasswordTextBox" runat="server" TextMode="Password" />
                    <asp:RegularExpressionValidator ID="PasswordValidate" runat="server"
                        ControlToValidate="NewUserPasswordTextBox"
                        ErrorMessage="Minimum password length is 6" 
                        ValidationExpression=".{6}.*" ValidationGroup="NewUserValidationGroup"/>
                    <asp:RequiredFieldValidator ID="NewUserPasswordRequiredValidator" runat="server"
                        ControlToValidate="NewUserPasswordTextBox" Text="*" ErrorMessage="A password is required."
                        ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Confirm Password">
                <InsertItemTemplate>
                    <asp:TextBox ID="NewUserConfirmPasswordTextBox" runat="server" TextMode="Password" />
                    <asp:RegularExpressionValidator ID="PasswordConfirmValidate" runat="server"
                        ControlToValidate="NewUserConfirmPasswordTextBox"
                        ErrorMessage="Minimum password length is 6" 
                        ValidationExpression=".{6}.*" ValidationGroup="NewUserValidationGroup"/>
                    <asp:RequiredFieldValidator ID="NewUserConfirmPasswordRequiredValidator" runat="server"
                        ControlToValidate="NewUserConfirmPasswordTextBox" Text="*" ErrorMessage="A password confirmation is required."
                        ValidationGroup="NewUserValidationGroup" />
                    <asp:CompareValidator ID="NewUserConfirmPasswordCompareValidator" runat="server"
                        ControlToValidate="NewUserConfirmPasswordTextBox" ControlToCompare="NewUserPasswordTextBox"
                        Operator="Equal" Text="*" ErrorMessage="Passwords must match." ValidationGroup="NewUserValidationGroup" />
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Role">
                <InsertItemTemplate>
                    <asp:DropDownList ID="NewUserRoleDropDownList" runat="server" SelectedValue='<%# Bind("SecurityRole") %>'>
                        <asp:ListItem Value="Manager" />
                        <asp:ListItem Value="Client" />
                        <asp:ListItem Value="Staff" Selected="True" />
                    </asp:DropDownList>
                </InsertItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ShowInsertButton="true" ButtonType="Button" ValidationGroup="NewUserValidationGroup" />
        </Fields>
        <InsertRowStyle HorizontalAlign="Left" VerticalAlign="Middle" />
        <RowStyle HorizontalAlign="Left" VerticalAlign="Middle" />
    </asp:DetailsView>
</asp:Content>
